import request from '@/utils/request'

// 查询订单列表
export function listAxOrder(query) {
  return request({
    url: '/ax/axOrder/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getAxOrder(id) {
  return request({
    url: '/ax/axOrder/' + id,
    method: 'get'
  })
}

// 查询订单详细
export function indexStaticSummary() {
  return request({
    url: '/ax/axOrder/indexStaticSummary' ,
    method: 'get'
  })
}
export function indexStaticWeekDayData() {
  return request({
    url: '/ax/axOrder/indexStaticWeekDayData' ,
    method: 'get'
  })
}

// 新增订单
export function addAxOrder(data) {
  return request({
    url: '/ax/axOrder',
    method: 'post',
    data: data
  })
}

export function sendGood(data) {
  return request({
    url: '/ax/axOrder/sendGood',
    method: 'post',
    data: data
  })
}

// 修改订单
export function updateAxOrder(data) {
  return request({
    url: '/ax/axOrder',
    method: 'put',
    data: data
  })
}

// 删除订单
export function delAxOrder(id) {
  return request({
    url: '/ax/axOrder/' + id,
    method: 'delete'
  })
}
